package com.peakmain.wanandroid.loginmodule.component;

import android.app.Activity;
import android.content.Context;

import com.peakmain.wanandroid.loginmodule.LoginActivity;
import com.peakmain.wanandroid.loginmodule.RegisterActivity;
import com.peakmain.wanandroid.netmodule.di.component.ApplicationComponent;
import com.peakmain.wanandroid.netmodule.di.module.ActivityModule;
import com.peakmain.wanandroid.netmodule.di.scop.ContextLife;
import com.peakmain.wanandroid.netmodule.di.scop.PerActivity;

import dagger.Component;

/**
 * author: peakmain
 * createdata：2019/7/10
 * mail: 2726449200@qq.com
 * desiption:
 */
@PerActivity
@Component(dependencies = ApplicationComponent.class,modules = ActivityModule.class)
public interface ActivityComponent {

    @ContextLife("Activity")
    Context getActivityContext();

    @ContextLife("Application")
    Context getApplicationContext();


    Activity getActivity();

    void inject(LoginActivity loginActivity);

    void inject(RegisterActivity registerActivity);
}
